/* 避免状态栏被手机端顶部遮挡 */
const SYSTEM_INFO = uni.getSystemInfoSync();/* 获取设备信息 */
export const getstatusBarHeight = ()=>SYSTEM_INFO.statusBarHeight || 15;/* export暴露 */

export const getTitleBarHeigt = ()=>{
	if(uni.getMenuButtonBoundingClientRect){
		let {top,height} = uni.getMenuButtonBoundingClientRect();
		return (top - getstatusBarHeight())*2+ height; 
		
	}else{
		return 80;
	}
}

export const getNavBarHeight = ()=> getstatusBarHeight()+getTitleBarHeigt();